package com.example.a2302fx.room

import android.app.Application
import androidx.room.Room

class AppDBUtils {
    companion object{
        private lateinit var appDataBase: AppDataBase
        fun init(application: Application){
            appDataBase = Room.databaseBuilder(application,AppDataBase::class.java,"2302fx.db")
                .allowMainThreadQueries()
                .build()
        }

        fun getDb() = appDataBase
    }
}